package com.ankur.fareplease.factory;

import com.ankur.fareplease.strategy.CityAutoFare;
import com.ankur.fareplease.strategy.impl.BangloreCityAutoFare;
import com.ankur.fareplease.strategy.impl.DelhiCityAutoFare;
import com.ankur.fareplease.strategy.impl.MumbaiCityAutoFare;
import com.ankur.fareplease.strategy.impl.PuneCityAutoFare;

public class CityFareFactory {
	public static CityAutoFare getCityFare(String city) {
		if(city.equals("Pune")) {
			return new PuneCityAutoFare();
		}
		else if(city.equals("Mumbai")) {
			return new MumbaiCityAutoFare();
		}
		else if(city.equals("Banglore")) {
			return new BangloreCityAutoFare();
		}
		else if(city.equals("Delhi")) {
			return new DelhiCityAutoFare();
		}
		return null;
	}
}
